<%@ page import="org.apache.commons.codec.digest.DigestUtils" %>
<%@ page import="org.apache.commons.lang.StringEscapeUtils" %>
&copy; The Box Populi. | <a href="mailto:info@theboxpopuli.com?subject='Ask for info of The Box Populi'">info@theboxpopuli.com</a>
</br>
Design by <a href="http://www.csstemplatesforfree.org">CSS Templates For Free</a>.
        <p>
            <b>Server:&nbsp;</b><%= application.getServerInfo() %>&nbsp;|&nbsp;<b>Servlet Specification:</b>&nbsp;<%= application.getMajorVersion() %>.<%= application.getMinorVersion() %>&nbsp;|&nbsp;<b>JSP Version:&nbsp;</b><%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %>
        </p>
		<p id="bi">Browser info:</p>
			<script>
			    jQuery.each(jQuery.browser, function(i, val) {
			      $("<b>&nbsp;" + i + " = " + val + "&nbsp;</b>").appendTo( $("#bi") );
			    });
		    </script>
     	<sec:authorize access="isAuthenticated()">
		    <c:set var="email"><sec:authentication property="principal.email" /></c:set>
  			<c:set var="gravatarHash" value='<%= DigestUtils.md5Hex(StringEscapeUtils.unescapeXml((String)pageContext.getAttribute("email")).trim().toLowerCase()) %>' />
			<c:set var="keyQRCode"><spring:message code="address.servlet.feedbacker" htmlEscape="false" />?username=<sec:authentication property="principal.username" /></c:set>            
    		<spring:message code="header.info" /> <img src="${pageContext.request.scheme}://<c:choose><c:when test="${pageContext.request.scheme == 'http'}">www</c:when><c:otherwise>secure</c:otherwise></c:choose>.gravatar.com/avatar/${gravatarHash}.jpg?s=25&amp;d=identicon&amp;r=pg" alt="<sec:authentication property="principal.displayName" />" /> <sec:authentication property="principal.displayName" />
    		
	  		<!-- <div id="divusername"></div>--> 
	  	  	<script type="text/javascript">
		    	var keyQRCode = '${keyQRCode}';
				var aDatakeyQRCode = encodeURIComponent(keyQRCode);
				$('#divusername').html( '<a href="/qrcode/generateQRCode?key='+aDatakeyQRCode+'" target="_blanck"><img width="100" height="100" src="/qrcode/generateQRCode?key='+aDatakeyQRCode+'"/></a>' );						
	   		</script>   
		</sec:authorize>